package com.ruoyi.shop.trade.mapper;

import java.util.List;
import com.ruoyi.shop.trade.domain.ShopOrderItem;
import com.ruoyi.shop.trade.vo.ShopOrderItemVo;

/**
 * 订单明细Mapper接口
 * 
 * @author xuxiang
 * @date 2023-07-31
 */
public interface ShopOrderItemMapper {

	/**
	 * 查询订单明细
	 * 
	 * @param itemId 订单明细主键
	 * @return 订单明细
	 */
	public ShopOrderItem selectItemById(Long itemId);

	/**
	 * 查询订单明细
	 * 
	 * @param orderId 订单明细主键
	 * @return 订单明细
	 */
	public List<ShopOrderItemVo> selectItemByOrderId(Long orderId);

	/**
	 * 查询订单明细列表
	 * 
	 * @param orderItem 订单明细
	 * @return 订单明细集合
	 */
	public List<ShopOrderItem> selectOrderItemList(ShopOrderItem orderItem);

	/**
	 * 新增订单明细
	 * 
	 * @param orderItem 订单明细
	 * @return 结果
	 */
	public int insertOrderItem(ShopOrderItem orderItem);

	/**
	 * 修改订单明细
	 * 
	 * @param orderItem 订单明细
	 * @return 结果
	 */
	public int updateOrderItem(ShopOrderItem orderItem);
	
	/**
	 * 修改订单明细
	 * 
	 * @param orderItem 订单明细
	 * @return 结果
	 */
	public int updateRefundItem(ShopOrderItem orderItem);
	
	/**
	 * 查询订单项数量
	 * 
	 * @param orderItem
	 * @return
	 */
	public int querOrderItemCount(ShopOrderItem orderItem);

}
